define(["dojo/_base/declare", "dijit/form/Form", "dijit/form/TextBox", "dijit/form/Button"], function(declare){
    declare("my.form.Base", [dijit._Widget], {

    	
    	startup : function(){
    		dojo.xhrPost(
				    {
				        url : "getCurrentUserAction.action",
				        handleAs : "json",
				        load : dojo.hitch(this, this.onLoadCurrentUser),
				    });
    	},
    	
    	onLoadCurrentUser : function(responseObject, ioArgs){
    		dojo.byId('contextLabel').innerHTML = responseObject.user.username;
    	}
    	
    });
});